TAGs: leading coefficient calculator